package com.lmt.base;

import java.io.Serializable;

/**
 * 返回的数据
 * Date 2018/07/17
 *
 * @author MT-Lin
 */
public class ResultData implements Serializable {

    /**
     * 状态编码
     */
    private Integer code;

    /**
     * 信息
     */
    private String message;

    /**
     * 返回的数据
     */
    private Object data;

    /**
     * 加密的数据
     */
    private String encryptData;

    public Integer getCode() {
        return code;
    }

    public ResultData setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ResultData setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getData() {
        return data;
    }

    public ResultData setData(Object data) {
        this.data = data;
        return this;
    }

    public String getEncryptData() {
        return encryptData;
    }

    public ResultData setEncryptData(String encryptData) {
        this.encryptData = encryptData;
        return this;
    }

    @Override
    public String toString() {
        return "ResultData{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
